//
//  QColorUtility.h
//  QoilPublic
//
//  Created by zhuang on 16/7/1.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface QColorUtility : NSObject

+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;//颜色转换

/*
  线的颜色
 */

//线的颜色
+ (UIColor *)defaultLineColor;

//背景色
+ (UIColor *)defaultBackGroundColor;

//主色调
+ (UIColor *)defaultMainColor;

//灰色按钮
+ (UIColor *)defaultGrayButtonColor;


/*
 字体颜色
 */

//黑色
+ (UIColor *)defaultBackColor;

//深灰
+ (UIColor *)defaultDeepGrayColor;

//浅灰
+ (UIColor *)defaultLowGrayColor;

//蓝色
+ (UIColor *)defaultBlueColor;

//红色
+ (UIColor *)defaultRedColor;

//置灰
+ (UIColor *)defaultDisGrayColor;

+ (NSMutableAttributedString *)textWithString:(NSString *)textStr;

+ (NSMutableAttributedString *)textWithString:(NSString *)textStr changeColorText:(NSString *)text;

//正则表达式判断纯数字
+ (BOOL)validateNumber:(NSString *) textString;

//判断是否是电话号码
+ (BOOL)isMobileNumber:(NSString *)mobileNum;


+ (UIImage *)createNonInterpolatedUIImageFormCIImage:(CIImage *)image withSize:(CGFloat) size;

+ (UIImage *)buttonImageFromColor:(UIColor *)color rect:(CGRect)rect;

@end
